package sy5_3;

import java.sql.SQLOutput;

public class Demo1 {
    public static void main(String[] args) {
        Card card1 = new Card("xiaoming",100);
        Card card2 = new Card("xiaolong",100);
        ATM atm = new ATM();
        atm.setCard(card1);
        try {
            atm.withDraw(200);
        }catch (moneynotenough e){
            System.out.println(e.getMessage());
        }
        atm.getCardMoney();
    }
}
